<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
use Hyperf\HttpServer\Router\Router;

Router::addRoute(['GET', 'POST', 'HEAD'], '/', 'App\Controller\IndexController@index');

Router::addRoute(['POST'], '/device/stop', 'App\Controller\IndexController@stop');
Router::addRoute(['POST'], '/device/start', 'App\Controller\IndexController@start');
Router::addRoute(['POST'], '/device/curr', 'App\Controller\IndexController@curr');
Router::addRoute(['POST'], '/device/setTotal', 'App\Controller\IndexController@setTotal');
Router::addRoute(['POST'], '/device/restart', 'App\Controller\IndexController@restart');
Router::addRoute(['POST'], '/device/recharge', 'App\Controller\IndexController@recharge');
Router::addRoute(['POST'], '/device/statusQuery', 'App\Controller\IndexController@statusQuery');
Router::addRoute(['POST'], '/device/clear', 'App\Controller\IndexController@clear');
Router::addRoute(['POST'], '/device/speed', 'App\Controller\IndexController@speed');
Router::addRoute(['POST'], '/device/setMode', 'App\Controller\IndexController@setMode');
Router::addRoute(['POST'], '/device/querySpeed', 'App\Controller\IndexController@querySpeed');
Router::addRoute(['POST'], '/device/editDu', 'App\Controller\IndexController@editDu');
Router::addRoute(['POST'], '/device/finalDu', 'App\Controller\IndexController@finalDu');

Router::addRoute(['GET'], '/device/test_redis', 'App\Controller\IndexController@testRedis');

Router::get('/favicon.ico', function () {
    return '';
});
